package controllers;

import play.mvc.Http.*;
import play.mvc.*;

public class Seguranca extends Security.Authenticator{
	
	public String getUsername(Context ctx) {
		return ctx.session().get("email");
	}
	
	public Result onUnauthorized(Context ctx) {
		return redirect(routes.CtrlLogin.login());
	}
}